[XEND] Add support for multiple storage repositories.
authorAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 15:47:31 +0000 (15:47 +0000)
committerAlastair Tse <atse@xensource.com>
Wed, 24 Jan 2007 15:47:31 +0000 (15:47 +0000)
commitd3cc627bf9cad771538855797875a69b6d3541d4
treedc4ee848504c35f444d796c50fc63cc281b2fbfc
parentcd402c7539fef4dccad692fcbec4a1d3136e967f
[XEND] Add support for multiple storage repositories.

Splits XendStorageRepository into a helper class and
XendQCowStorageRepo as the QCoW File backed repository. This gives us
the opportunity to introduce a pseudo storage repository to represent
the old way of specifying block devices. This is the
XendLocalStorageRepo.

Note that this still introduces a non-Xen API 'uri' attribute to VDIs
in order to support querying VDIs for their actual location relative
to the Xen host.

The QCoW backed repository is now named QCoW, and the pseudo-SR is
named Local.

This removes the 'image' attribute backwards-compat hack in VBDs in
the Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/XendLocalStorageRepo.py [new file with mode: 0644]
tools/python/xen/xend/XendNode.py
tools/python/xen/xend/XendOptions.py
tools/python/xen/xend/XendQCoWStorageRepo.py [new file with mode: 0644]
tools/python/xen/xend/XendStorageRepository.py
tools/python/xen/xend/XendVDI.py